package com.outsourcing.bottle.widget.pullrefresh;

import android.content.res.Resources;
/**
 * 
 * @author 06peng
 *
 */
public class Pixel {

	private Resources resources;
	private int value;

	public Pixel(int value, Resources resources) {
		this.value = value;
		this.resources = resources;
	}

	public float toDp() {
		return this.value * this.resources.getDisplayMetrics().density + 0.5f;
	}
}
